<%@page import="com.wu24.bean.*,com.wu24.service.GoodsService,java.math.BigDecimal,java.util.*,java.util.Map.Entry"%>
<%@ page language="java" pageEncoding="utf-8"%>
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>上传商品</title>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/font-awesome.min.css">
<link rel="stylesheet" href="css/owl.carousel.css">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="css/responsive.css">

</head>
<body>

	<div class="header-area">
		<div class="container">
			<div class="row">
				<div class="col-md-8">
					<div class="user-menu">
						<ul>
							  <li><a href="#"><i class="fa fa-user"></i>欢迎<%=((User)session.getAttribute("user")).getUserName() %>登录</a></li>  
						</ul>
					</div>
				</div>
			</div>
		</div>
	</div>
	<!-- End header area -->

	<div class="site-branding-area">
		<div class="container">
			<div class="row">
				<div class="col-sm-6">
					<div class="logo">
						<h1>
							<a href="index.html"><span>西北大学二手交易市场</span></a>
						</h1>
					</div>
				</div>

				<div class="col-sm-6">
					<p>&nbsp;</p>
					<p>&nbsp;</p>
					<p>寻你所想 如你所愿</p>
				</div>
			</div>
		</div>
	</div>
	<!-- End site branding area -->

	<div class="mainmenu-area">
		<div class="container">
			<div class="row">
				<div class="navbar-header">
					<button type="button" class="navbar-toggle" data-toggle="collapse"
						data-target=".navbar-collapse">
						<span class="sr-only">Toggle navigation</span> <span
							class="icon-bar"></span> <span class="icon-bar"></span> <span
							class="icon-bar"></span>
					</button>
				</div>
				<div class="navbar-collapse collapse">
					<ul class="nav navbar-nav">
						  <li ><a href="main.jsp">首页</a></li>
                        <li ><a href="shop.jsp">逛一逛</a></li>                
                        <li><a href="cart.jsp">购物车</a></li>
                        <li class="active"><a href="upload.jsp">上传商品</a></li>

					</ul>
				</div>
			</div>
		</div>
	</div>
	<!-- End mainmenu area -->



	<div class="product-big-title-area">
		<div class="container">
			<div class="row">
				<div class="col-md-12">
					<div class="product-bit-title text-center">
						<h2>来上传你的商品吧！</h2>
					</div>
				</div>
			</div>
		</div>
	</div>

	<div class="single-product-area">
		<div class="container">
			<div class="row">
				<form action="uploadHanlder" method="post" enctype="multipart/form-data">
					商品名字：<input type="text" height="60px" width="100px" name="name" /><br/><br/> 
					商品价格：<input type="number" height="60px" width="100px" name="price" /><br/><br/> 
					商品类型： <select name="type">
					<%
                      HashMap<BigDecimal,String>types=GoodsService.getTypes(); 
                      for (Entry<BigDecimal, String> entry :types.entrySet()) {
	                   BigDecimal key=entry.getKey();
	                  String value=entry.getValue();
                      
                     %>
						<option value=<%=key %>><%=value %></option>
				     <%
                       }
                     %>
					</select><br/><br/> 
					商品描述：<textarea name="description" rows="10" cols="30"></textarea><br><br>
					 <input type="file" id="logo" name="logo" accept="image/*"><br/><br/>
					  <input id="btn" type="submit" value="提交" />
				</form>
			</div>

		</div>
	</div>

 <div class="footer-top-area">
        <div class="zigzag-bottom"></div>
        <div class="container">
            <div class="row">
                <div class="col-md-3 col-sm-6">
                    <div class="footer-about-us">
                        <h2>声明<span></span></h2>
                        <p>本网站仅做测试使用，如有侵权，请联系我们。</p>
             
                    </div>
                </div>
                
                <div class="col-md-3 col-sm-6">
                    <div class="footer-menu">
                        <h2 align="center" class="footer-wid-title">如果不满意</h2>
                        <ul><li>
                          <div align="center"><a href="">淘宝</a></div>
                        </li>
                            <li>
                              <div align="center"><a href="">苏宁易购</a></div>
                            </li>
                            <li>
                              <div align="center"><a href="">58同城</a></div>
                            </li>
                            <li>
                              <div align="center"><a href="">转转</a></div>
                            </li>
                            <li>
                              <div align="center"><a href="">唯品会</a></div>
                            </li>
                        </ul>                        
                  </div>
                </div>
                
                <div class="col-md-3 col-sm-6">
                    <div class="footer-menu">
                        <h2 align="center" class="footer-wid-title">请点击这里</h2>
                    <ul>
                            <li>
                              <div align="center"><a href="">淘宝</a></div>
                        </li>
                          <li>
                            <div align="center"><a href="">京东</a></div>
                      </li>
                          <li>
                            <div align="center"><a href="">天猫</a></div>
                      </li>
                          <li>
                            <div align="center">蘑菇街<a href=""></a></div>
                          </li>
                        <li>
                              <div align="center"><a href="">赶集网</a></div>
                        </li>
                      </ul>                        
                    </div>
                </div>
                
                <div class="col-md-3 col-sm-6">
                    <div class="footer-newsletter">
                        <h2 align="center" class="footer-wid-title">或者联系我们</h2>
                      <p>如果你对我们的工作不满意，请输入您的建议</p>
                        <div class="newsletter-form">
                            <input type="email" placeholder="请输入您的建议">
                            <input type="submit" value="提交">
                        </div>
                    </div>
                </div>
            </div>
        </div>
</div>
  
   
   
  </body>
</html>